//
//  XJSCGoodsFormat.h
//  XinJiangMall
//
//  Created by RaoBo on 2018/6/26.
//  Copyright © 2018年 Tzyang. All rights reserved.
//

#import <Foundation/Foundation.h>
@protocol XJSCGoodsFormatDelegate <NSObject>

@required
/**请求到数据*/
- (void)requestSCGoodsListSuccessWithArray:(NSMutableArray *)dataArray;

/**需要刷新时统一回调*/
- (void)xjscgoodsFormatReloadDataWhenNeed;
/**将要删除收藏的商品*/
- (void)xjscgoodsFormatWillDeleteSelectedTopics:(NSArray *)selectedArr;

@optional


@end

@interface XJSCGoodsFormat : NSObject
@property (nonatomic, weak) id <XJSCGoodsFormatDelegate> delegate;

/**网络请求*/
- (void)requestSCGoodsList;
/***选中、取消选中cell*/
- (void)xjscgoods_selectItemAtIndexPath:(NSIndexPath *)indexPath isSelected:(BOOL)isSelected;

/**全选、取消全选*/
- (void)xjscgoods_selecteaAllWithState:(BOOL)state;
/**批量删除:收藏的商品*/
- (void)beginToDeleteSelectedGoods;
/**注意调用时机*/
- (void)deleteSelectedGoodsArr:(NSArray *)array;

@end


/**
 {
 "code": 0,
 "data": {
 "collection_list": [{
 "cover": "http://static.zertone1.com/c3QNDIRqqim9m3zhtRqpSquiAoTnuH25.png",
 "price": 10.00,
 "name": "iOS测试商品1",
 "market_price": 20.00,
 "id": 1064
 }, {
 "cover": "http://static.zertone1.com/XOsnlLrlkt6pY0ZAQDmEU6OaTXRRBtYW.jpg",
 "price": 11.00,
 "name": "天苍苍野茫茫风吹草地见牛羊天苍苍野茫茫风吹草地见牛天苍苍野茫茫风吹草地见牛羊",
 "market_price": 11.00,
 "id": 1065
 }, {
 "cover": "http://static.zertone1.com/Up1PlnGEFc9DuI4KBjS9EeKbaScKONZl.png",
 "price": 1.00,
 "name": "茄子",
 "market_price": 1.00,
 "id": 1066
 }, {
 "cover": "http://static.zertone1.com/MBjYCy5H5R0WoEiA5Pzc2IfXSa8cNyeF.jpg",
 "price": 56.00,
 "name": "发顺丰",
 "market_price": 67.00,
 "id": 1067
 }, {
 "cover": "http://static.zertone1.com/a6sq7Ssx58qwI6Q0cE7X6GLrExhe9F7v.png",
 "price": 10.00,
 "name": "橘子",
 "market_price": 30.00,
 "id": 1068
 }, {
 "cover": "http://static.zertone1.com/ZunZswjyZQdkhT17tZr1y1yAAL6XrMDZ.png",
 "price": 10.00,
 "name": "番茄1",
 "market_price": 30.00,
 "id": 1069
 }, {
 "cover": "http://static.zertone1.com/Z68FRaY0m3MU6W3KhmGoPV6upC5AekXO.png",
 "price": 10.00,
 "name": "苹果1",
 "market_price": 30.00,
 "id": 1070
 }, {
 "cover": "http://static.zertone1.com/S7GBterzktNT4crC0ELl1aNU0Znc1U9n.png",
 "price": 10.00,
 "name": "桃子2",
 "market_price": 30.00,
 "id": 1071
 }, {
 "cover": "http://static.zertone1.com/hg587IOcuj1hY9cwCc1ZUQZz9XyBh269.png",
 "price": 10.00,
 "name": "米饭1",
 "market_price": 30.00,
 "id": 1072
 }, {
 "cover": "http://static.zertone1.com/GvlTYpjqeTsS3Kq43ml58oyt7BxW9Hsp.png",
 "price": 10.00,
 "name": "西瓜1",
 "market_price": 30.00,
 "id": 1073
 }, {
 "cover": "http://static.zertone1.com/gLtYQdBq82fIv83TrFM90dcG0sINXz9V.png",
 "price": 10.00,
 "name": "冰2",
 "market_price": 30.00,
 "id": 1074
 }]
 }
 }
 */
